package com.eagle.scali.contentcenter.feignclient;


import com.eagle.scali.contentcenter.domain.dto.user.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(name = "user-center")
public interface TestUserCenterFeignClient {
    /**
	 * Get请求，只要GetMapping匹配就可以了，其它不用匹配
     * @param userDTO
     * @return
     */
    @GetMapping("/q")
	UserDTO query(@SpringQueryMap UserDTO userDTO);

	/**
	 * Post请求,只要PostMapping匹配就可以了，其它不用匹配
	 * @param userDTO
	 * @return
	 */
	@PostMapping("/p")
	UserDTO testPost(@RequestBody UserDTO userDTO);
}
